#include<iostream>
#include<string>
using namespace std;
int main()
{
    string sl="123",s2;
    s2 += sl;
    sl = "abc";
    sl += "def";
    cout<<"1)"<<sl<<endl;
    if(s2<sl)
    cout<<"2)s2<sl"<<endl;
    else
    cout<<"2)s2>=sl"<<endl;
    s2[1] ='A';
    sl = "XYZ"+s2;
    string s3 = sl+s2;
    cout<<"3)"<<s3<<endl;
    cout<<"4)"<<s3.size()<<endl;
    string s4=s3.substr(1,3);
    cout<<"5)"<<s4<<endl;
    char str[20];
    strcpy(str,s4.c_str());
    cout<<"6)"<<str<<endl;
	return 0;
}